<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id: tags.php 2726 2012-02-11 13:34:24Z liu21st $
/*
业务规则检测，任何操作有效，以&链接符为逻辑执行前验证，以^链接符为逻辑执行过程验证。

一、系统自动调用；
二、严格区分大小写；
命名规则：模块名+操作名（模块名与操作名之前用&格开，操作名中不允许再出现_否则出错）
行为类：操作名将做行为类的默认调用方法，行为类目录：Extend/Behavior 行为类名与模块名一致。

*/

return array(

    'Orders&edit' 			=> array('Orders'),
    'Orders&update' 		=> array('Orders'),
    'Orders&deleteDetail'	=> array('Orders'),
    'Orders&delete' 		=> array('Orders'),
    
    'LoadContainer&edit' 	=> array('LoadContainer','Funds'), 
    'LoadContainer&delete' 	=> array('LoadContainer'),
    'LoadContainer^insert' 	=> array('Funds'),
    'LoadContainer^update' 	=> array('LoadContainer','Funds'), 
    
	'Instock&edit' 			=> array('CheckStockTake','Funds'),
    'Instock&delete'		=> array('CheckStockTake','CheckStorage','Funds','Instock'),
    'Instock&deleteDetail'	=> array('CheckStockTake','CheckStorage'),
    'Instock^insert' 		=> array('Funds','CheckStockTake'),
 	'Instock^update'		=> array('CheckStockTake','CheckStorage','Funds'), 


	
    'SaleOrder&delete' 			=> array('CheckStockTake','SaleOrder','Funds'),
    'SaleOrder&edit' 			=> array('CheckStockTake','SaleOrder','Funds'),
	'SaleOrder^insert' 			=> array('CheckStockTake','SaleOrder','CheckStorage','Funds'),
    'SaleOrder^update' 			=> array('Funds','CheckStorage','SaleOrder'), 


     
    'PreDelivery&delete'			=> array('PreDelivery'),
    'PreDelivery&edit' 				=> array('PreDelivery'),
    'PreDelivery&update' 			=> array('PreDelivery'),
    'PreDelivery^insert' 			=> array('PreDelivery'),
    
    'Delivery&delete' 				=> array('CheckStockTake','Delivery','Funds'),
    'Delivery&edit' 				=> array('CheckStockTake','Delivery','Funds'),
    'Delivery^insert' 				=> array('CheckStockTake','CheckStorage','Delivery'),
    'Delivery^update' 				=> array('CheckStockTake','CheckStorage'),  
    
    'ReturnSaleOrder&delete'		=> array('CheckStockTake','CheckStorage','Funds','ReturnSaleOrder'),
    'ReturnSaleOrder&deleteDetail'	=> array('CheckStockTake','CheckStorage'),
    'ReturnSaleOrder&edit'			=> array('CheckStockTake','Funds'),
    'ReturnSaleOrder^insert'		=> array('CheckStockTake','CheckStorage','Funds'),
    'ReturnSaleOrder^update'		=> array('CheckStockTake','CheckStorage','Funds'),
 
    'Adjust&delete'					=> array('CheckStockTake','CheckStorage'),
    'Adjust&edit'					=> array('CheckStockTake'),
    'Adjust&deleteDetail'			=> array('CheckStockTake','CheckStorage'),
    'Adjust^insert'					=> array('CheckStockTake','CheckStorage'),
    'Adjust^update'					=> array('CheckStockTake','CheckStorage'),
   
    'InitStorage^insert'			=> array('CheckStockTake','InitStorage'),
    'InitStorage&edit'				=> array('CheckStockTake'),
    'InitStorage^update'			=> array('CheckStockTake','InitStorage','CheckStorage'),
    'InitStorage&delete'			=> array('CheckStockTake','CheckStorage'),
    'InitStorage&deleteDetail'		=> array('CheckStockTake','CheckStorage'),
    
    'Transfer&edit'					=> array('CheckStockTake'),
    'Transfer&delete'				=> array('CheckStockTake','CheckStorage'),
    'Transfer&deleteDetail'			=> array('CheckStorage'),
    'Transfer^insert'				=> array('CheckStockTake','CheckStorage'),
    'Transfer^update'				=> array('CheckStockTake','CheckStorage'),
    
    'ClientOtherArrearages&delete'	=> array('Funds'),
    'ClientOtherArrearages^insert'	=> array('Funds'),
    'ClientIni&delete'				=> array('Funds'),
    'ClientIni^insert'				=> array('Funds'),
    'ClientFunds&delete'			=> array('Funds'),
    'ClientFunds^insert'			=> array('Funds'),
    'ClientCheckAccount&delete'		=> array('Funds'), 
    'ClientCheckAccount^insert'		=> array('Funds'), 
    
    'FactoryOtherArrearages&delete'	=> array('Funds'),
    'FactoryOtherArrearages^insert'	=> array('Funds'),
    'FactoryIni&delete'				=> array('Funds'),
    'FactoryIni^insert'				=> array('Funds'),
    'FactoryFunds&delete'			=> array('Funds'),
    'FactoryFunds^insert'			=> array('Funds'),
    'FactoryCheckAccount&delete'	=> array('Funds'), 
    'FactoryCheckAccount^insert'	=> array('Funds'), 
    
    'LogisticsOtherArrearages&delete'=> array('Funds'),
    'LogisticsOtherArrearages^insert'=> array('Funds'),
    'LogisticsIni&delete'			=> array('Funds'),
    'LogisticsIni^insert'			=> array('Funds'),
    'LogisticsFunds&delete'			=> array('Funds'),
    'LogisticsFunds^insert'			=> array('Funds'),
    'LogisticsCheckAccount&delete'	=> array('Funds'), 
    'LogisticsCheckAccount^insert'	=> array('Funds'), 
    //盘点
    'Stocktake&delete'	=> array('Stocktake'),
    'Stocktake&edit'	=> array('Stocktake'),
    'Profitandloss&add'	=> array('Stocktake'),
    //发票
    'InvoiceIn^insert'	=> array('InvoiceIn'),
    'InvoiceIn^update'	=> array('CheckInvoiceStorage'),
    'InvoiceIn&delete'	=> array('CheckInvoiceStorage'),
    'InvoiceOut^insert' => array('InvoiceOut','CheckInvoiceStorage'),
    'InvoiceOut^update'	=> array('CheckInvoiceStorage'),
    'InvoiceOut&delete'	=> array('CheckInvoiceStorage'),
    'InvoiceInitStorage^update'	=> array('CheckInvoiceStorage'),
    'InvoiceInitStorage&delete'	=> array('CheckInvoiceStorage'),
    //盈亏
    'Profitandloss&rightExtra'	=> array('Profitandloss'),
    'Profitandloss&delete'		=> array('Profitandloss'),
    
    // 角色
    'Role&edit'	=> array('Role'),
    'Role&delete'	=> array('Role'),
    'Epass&edit'	=> array('Epass'),
    'Epass&update'	=> array('Epass'),
    'Epass&delete'	=> array('Epass'),
);